"use strict";
//泛型接口
// 函数表达式类型
const mutipless = function (arr) {
    return arr.reduce((pre, cur) => pre + cur, 0);
};
console.log(mutipless([1, 2, 3], 0));
console.log(mutipless(["1", "2", "3"], 0));
// 箭头函数类型
const mutiples = (arr, init) => {
    return arr.reduce((pre, next) => pre + next, init);
};
console.log(mutiples([1, 2, 3], 0));
console.log(mutiples(["1", "2", "3"], 0));
// 箭头函数类型  使用第二种 必须提供参数
const mutip = (arr, init = 0) => {
    return arr.reduce((pre, next) => pre + next, init);
};
// console.log(mutip([1, 2, 3], 0)); //报错
console.log(mutip(["1", "2", "3"], 0));
const zkssssss = (a, b) => {
    return a + b;
};
console.log(zkssssss(1, "2"));
let ass = {
    content: { name: "苹果" },
};
const zzwks1 = [];
const zzwks2 = 55;
const zzwks3 = 'sad555';
